import java.io.Serializable;

public class Message implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private int senderProcess;
	private int[] receipients;
	
	public int getSenderProcess() {
		return senderProcess;
	}
	public void setSenderProcess(int senderProcess) {
		this.senderProcess = senderProcess;
	}
	public int[] getReceipients() {
		return receipients;
	}
	public void setReceipients(int[] receipients) {
		this.receipients = receipients;
	}
	public void setReceipientsToAllOthers() {
		receipients = new int[ProcessManager.numProcess-1];
		int j = 0;
		for (int i=0; i<ProcessManager.numProcess; i++) {
			if (i != senderProcess) {
				receipients[j++] = i; 
			}
		}
	}
	
}
